package com.mars.diancan.service.impl;

import com.mars.diancan.dao.SellerInfoRepository;
import com.mars.diancan.pojo.SellerInfo;
import com.mars.diancan.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author MARS
 * @date 2018/7/9
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return sellerInfoRepository.findByopenid(openid);
    }
}
